package com.maserb.monitor.web.author_manage;

import com.maserb.monitor.entity.DeviceCategoryEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/workgroup")
public class WorkGroupController {
    @RequestMapping(value = {"/", "/index"})
    public String getIndex() {
        return "author_manage/workgroup/index";
    }

    @RequestMapping("/getAddWorkGroup")
    public ModelAndView getAddWorkGroup() {
        ModelAndView result = new ModelAndView();
        result.setViewName("author_manage/workgroup/add");
        return result;
    }

//    @RequestMapping("/getEditWorkGroup/{id}")
//    public ModelAndView getEditDeviceCategory(@PathVariable final String id) {
//        ModelAndView result = new ModelAndView();
//        DeviceCategoryEntity entity = deviceCategoryService.findOne(id);
//        result.addObject("entity", entity);
//        result.setViewName("device_manage/device_category/edit");
//        return result;
//    }
}